package com.cn.wanxi.model;

public class NavModel {
    private String name;
    private String href;
    public String names[] = {"网站首页", "公司介绍", "新闻介绍", "产品介绍", "在线留言", "联系我们"};//静态赋值
    public String hrefs[] = new String[6];//动态赋值

    public NavModel() {
        hrefs[0] = "/home";
        hrefs[1] = "/company";
        hrefs[2] = "news.html";
        hrefs[3] = "product.html";
        hrefs[4] = "online.html";
        hrefs[5] = "callus.html";
    }

//    static {
//        hrefs[0] = "home.html";
//        hrefs[1] = "company.html";
//        hrefs[2] = "news.html";
//        hrefs[3] = "product.html";
//    }

//    {
//        hrefs[0] = "home.html";
//        hrefs[1] = "company.html";
//        hrefs[2] = "news.html";
//        hrefs[3] = "product.html";
//    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }
}
